20.3 AT^SCPOL Polling ConfigurationThe AT^SCPOL write command serves to start and stop polling a pin or port specified with <io_id>. The pin or port must already be configured via AT^SCPIN or AT^SCPORT. Polling is only applicable to input pins.
After polling has been activated on a specified pin or port, all new values related to this pin or port will be reported via the "^SCPOL" URC.
<mode>(num)
<io_id>(num)
<value>(num)
• The pins will be polled at every TDMA frame interrupt, i.e. every 4.616ms. In SLEEP mode, the frequency of polling is reduced, as polling will be done only when the module shortly suspends power saving when CTS is activated. So in SLEEP mode polling intervals are extended to a range from 0.9s to 2.7s.
After a state change has been detected the "^SCPOL" URC is issued if the state of the pin remains stable for 8 TDMA frames (= 36.93ms) in Normal mode, or accordingly, 0.9s to 2.7s in SLEEP mode.
• If the <value> of one or more of the polled pins has changed since polling has been performed last time, or since a particular pin or its entire port have last been queried with AT^SGIO, polling will be suspended to send a URC. There will be one URC reported for each polled pin whose <value> has changed, and one for each polled port with one or more changed pins.
|